import request from "@/utils/request";
import ConstTable from './ConstTable';


// 获取客户打印模板信息
export function getPrintTemplateCustomerInfo(id)
{
    return request({
        url: `${ConstTable.BaseUrl}/BaseData/PrintTemplateCustomer/${id}`,
        method: "GET"
    });
}

// 获取客户打印模板信息列表
export function getPrintTemplateCustomerList(data)
{
    return request({
        url: `${ConstTable.BaseUrl}/BaseData/PrintTemplateCustomer`,
        method: "GET",
        data
    });
}

// 添加客户打印模板信息
export function createPrintTemplateCustomer(data)
{
    return request({
        url: `${ConstTable.BaseUrl}/BaseData/PrintTemplateCustomer`,
        method: "POST",
        data
    });
}

// 更新客户打印模板信息
export function updatePrintTemplateCustomer(data)
{
    return request({
        url: `${ConstTable.BaseUrl}/BaseData/PrintTemplateCustomer/${data.id}`,
        method: "PUT",
        data
    });
}

// 删除客户打印模板信息
export function delPrintTemplateCustomer(id)
{
    return request({
        url: `${ConstTable.BaseUrl}/BaseData/PrintTemplateCustomer/${id}`,
        method: "DELETE"
    });
}